﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Futurism.Universal.Foundation
{
    [AttributeUsage(AttributeTargets.Class, Inherited=true)]
    public class ExportAttribute : Attribute
    {
        public Type ExportType { get; set; }

        public bool Shared { get; set; }

        public ExportAttribute(Type exportType, bool shared = true)
        {
            this.ExportType = exportType;
            this.Shared = shared;

        }

        public ExportAttribute(bool shared = true)
            : this(null, shared)
        {
        }
    }
}
